package com.book.oauth.server.login.log.vo;

import java.util.Date;
import java.math.BigDecimal;
import java.io.Serializable;
import com.book.common.util.DatetimeUtil;
import lombok.Data;
import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * Description：登录日志 Entity
 * @Author： leo.xiong
 * @CreateDate： 2020-05-26
 * @Email： leo.xiong@suyun360.com
 * Version:
 */
@Data
@ExcelTarget("loginLogVo")
@ApiModel(value = "LoginLogVo", discriminator = "登录日志Vo", subTypes = {LoginLogVo.class})
public class LoginLogVo implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value="主键ID")
    private Long id;

    @ApiModelProperty(value = "用户ID")
    @Excel(name = "用户ID", width = 30, isImportField = "true_st")
    private String userId;

    @ApiModelProperty(value = "用户名")
    @Excel(name = "用户名", width = 30, isImportField = "true_st")
    private String username;

    @ApiModelProperty(value = "登录时间")
    @JsonFormat(pattern = DatetimeUtil.YYYY_MM_DD_HH_MM_SS_L_C,timezone=DatetimeUtil.CHINA_TIME_ZONE)
    @Excel(name = "登录时间", databaseFormat = DatetimeUtil.YYYY_MM_DD_HH_MM_SS_L_C, format = DatetimeUtil.YYYY_MM_DD_HH_MM_SS_L_C, isImportField = "true_st", width = 20)
    private Date loginTime;

    @ApiModelProperty(value = "登录地点")
    @Excel(name = "登录地点", width = 30, isImportField = "true_st")
    private String location;

    @ApiModelProperty(value = "IP地址")
    @Excel(name = "IP地址", width = 30, isImportField = "true_st")
    private String ip;

    @ApiModelProperty(value = "操作系统")
    @Excel(name = "操作系统", width = 30, isImportField = "true_st")
    private String systemInfo;

    @ApiModelProperty(value = "浏览器")
    @Excel(name = "浏览器", width = 30, isImportField = "true_st")
    private String browser;

    @ApiModelProperty(value = "创建者")
    private String createBy;

    @ApiModelProperty(value = "创建人名称")
    private String createName;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = DatetimeUtil.YYYY_MM_DD_HH_MM_SS_L_C,timezone=DatetimeUtil.CHINA_TIME_ZONE)
    private Date createDate;

    @ApiModelProperty(value = "更新者")
    private String updateBy;

    @ApiModelProperty(value = "更新人名称")
    private String updateName;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = DatetimeUtil.YYYY_MM_DD_HH_MM_SS_L_C,timezone=DatetimeUtil.CHINA_TIME_ZONE)
    private Date updateDate;

}
